package com.sulent.frame.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sulent.frame.web.eneity.MultiUpload;
import io.minio.messages.Part;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface MultiUploadService extends IService<MultiUpload> {

    String initMultiUploadTask(String bucketName, String fileName, String fileSize, Integer partCount);

    String uploadPart(String uploadId, Long offset, Long length, Integer partNumber, Integer partSize, MultipartFile file);

    String completePart(String uploadId);

    List<Part> listMulti(String uploadId);

    String downloadObject(String objectName);

    Object listMultiUploads(String uploadId);

    String stateObject(String objectName);

    String preSignedUrl(String objectName);
}
